package com.bbj.inheritance;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/4/25
 * @Description: addition and subtraction
 */
public class People {
    private String name;
    protected Integer age = 20;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void sleep() {
        System.out.println("Sleeping...");
    }

}
